package cn.com.ctcloud.saas.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

// [TODO]推荐：使用Feign调用service-B
@FeignClient(value = "service-B")
@Service("bService")
public interface IBService {

	@RequestMapping(value = "/sub", method = RequestMethod.GET)
	String sub(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);

}